<admintpl file="header" />
</head>
<body>
	<php>$group=get_groups_admin_user();</php>

	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<!--来源URL-->
			<li><a href="{$from_url}">{$from_text}</a></li>

			<li class="active"><a>{$user.name} {:L('SEE_TITLE')}</a></li>
			<php>$from_type = I('get.from_type');</php>
			<li><a href="{:U('report/user_report360_list',array('id'=>$user['id'],'from_type'=>$from_type))}">{$user.name} 融360信用报告</a></li>
			<li><a href="{:U('report/user_report_pictrue_list',array('id'=>$user['id'],'from_type'=>$from_type))}">{$user.name} 融360用户画像(脱敏)报告</a></li>
			<li><a href="{:U('report/user_report',array('id'=>$user['id'],'from_type'=>$from_type))}">{$user.name} 聚信立信用报告(无融360报告时候使用)</a></li>
			<li><a href="{:U('report/user_report_zc_echo',array('id'=>$user['id'],'from_type'=>$from_type))}">{$user.name} 致诚阿福信用报告</a></li>
		</ul>
			<fieldset>
				<div class="tabbable">
					<div class="tab-content">
							<fieldset>
								<div class="control-group">
									<label class="control-label">姓名</label>
									<div class="controls">
										<php>
										if($group==3 || $group==8 || $group==10 || $group==6 || $group==13){
											if($user['account_status']==1){
												$name=mb_substr($user['name'],0,1,'utf-8').'**';
											}else{
												$name=$user['name'];
											}
										}else{
											$name=$user['name'];
										}
										</php>
										<input type="text" value="{$name}"><span class="form-required">*  状态 
										<if condition="($user.type eq 0)"> 待绑卡
										<elseif condition="$user.type eq 1"/>上传证件照
										<elseif condition="$user.type eq 2"/>待审核
										<elseif condition="$user.type eq 3"/>学信认证
										<elseif condition="$user.type eq 4"/>填写联系信息
										<else /> 
										</if></span> 
										<if condition="($user.type_borr eq 0)"> 待填写运营商信息
										<elseif condition="$user.type_borr eq 1"/>无借款
										<elseif condition="$user.type_borr eq 2"/>借款中
										<elseif condition="$user.type_borr eq 3"/>审核不通过
										</if>
										<input type="hidden" name="options[id]" value="{$user.id}">
									</div>
								</div>
								<div class="control-group">
									<label class="control-label">手机号码</label>
									<div class="controls">
										<php>
										if($group==3 || $group==8 || $group==10 || $group==6 || $group==13){
											if($user['account_status']!=0){
												$mob=substr($user['mobile'],0,3).'****'.substr($user['mobile'],-4);
											}else{
												$mob=$user['mobile'];
											}
										}else{
											$mob=$user['mobile'];
										}
										</php>
										<input type="text" value="{$mob}" ><span class="form-required">{$user.mob_name}&nbsp&nbsp&nbsp&nbsp服务密码&nbsp&nbsp<input type="text" name="options[mobile_pass]" value="{$user.mobile_pass}" ></span>
									</div>
								</div>
								<div class="control-group">
									<label class="control-label">其他手机号码</label>
									<div class="controls">
										<php>
											if($group==3 || $group==8 || $group==10 || $group==6 || $group==13){
											if($user['account_status']!=0){
											$mob=substr($user['other_mobile'],0,3).'****'.substr($user['other_mobile'],-4);
											}else{
											$mob=$user['other_mobile'];
											}
											}else{
											$mob=$user['other_mobile'];
											}
										</php>
										<input type="text" name="options[other_mobile]" value="{$mob}" />
									</div>
								</div>
								<div class="control-group">
									<label class="control-label">推荐码</label>
									<div class="controls">
										<span class="form-required">{$isdis.code}</span>
									</div>
								</div>
								<div class="control-group">
									<label class="control-label">手机类型 &nbsp&nbsp&nbsp&nbsp{$user['photo_type']==1?'苹果':'安卓'}</label>
									<label class="control-label" style="width:auto"></label>
								</div>
								<if condition="1 EQ $user['photo_type']">
									<div class="control-group">
										<label class="control-label">是否接受绑定苹果ID： &nbsp&nbsp&nbsp&nbsp{$user['accept_bind']==0?'不接受':'接受'}</label>
										<label class="control-label" style="width:auto"></label>
									</div>
								</if>
								<div class="control-group">
									<label class="control-label">
										借条平台是否有还款记录: &nbsp&nbsp&nbsp&nbsp <empty name="user['borr_record']">空<else/>{$user['borr_record']}</empty>
									</label>
									<label class="control-label" style="width:auto"></label>
								</div>
								<eq name="user.photo_type" value="1">
									<div class="control-group">
										<label class="control-label">AppleID</label>
										<div class="controls">
											<input type="text" value="{$user.apple_id}" />
										</div>
									</div>
								</eq>
								<div class="control-group">
									<label class="control-label">芝麻分</label>
									<div class="controls">
										<input type="text" name="options[sesame_score]" value="{$user.sesame_score}" class="just_can_number" disabled class="disabled">
									</div>
								</div>

								<div class="control-group">
									<label class="control-label">身份证</label>
									<div class="controls">
										<php>
										if($group==3 || $group==8 || $group==10 || $group==6 || $group==13){
											if($user['account_status']!=0){
											$mob=substr($user['identity'],0,3).'****'.substr($user['identity'],-4);
											}else{
												$mob=$user['identity'];
											}
										}else{
											$mob=$user['identity'];
										}
									</php>
										<input type="text" disabled value="{$mob}">
									</div>
								</div>
								
								<div class="control-group">
									<label class="control-label">证件照</label>
									<div class="controls">
										<notempty name="user.url">
											<img src="{:sp_get_image_preview_url_qk($user['url'])}" style="height:36px;width: 36px;" onclick="parent.image_preview_dialog(this.src,420,420);">
										</notempty>
										<ul id="photos" class="pic-list unstyled">
											<notempty name="user['photos_url']">
												<php>$pho=json_decode($user['photos_url'],true)</php>
												<foreach name="pho" item="vo">
												<php>$img_url=sp_get_image_preview_url($vo);</php>
												<li id="savedimage{$key}">
													<input id="photo-{$key}" type="hidden" name="photos_url[]" value="{$img_url}"> 
													<img id="photo-{$key}-preview" src="{:sp_get_image_preview_url($vo)}" style="height:36px;width: 36px;" onclick="parent.image_preview_dialog(this.src);">
												</li>
												</foreach>
											</notempty>
										</ul>
									</div>
								</div>
								<div class="control-group">
									<label class="control-label">银行卡号</label>
									<div class="controls">
									<php>
										if($group==3 || $group==8 || $group==10 || $group==13 || $group==6){
											if($user['account_status']!=0){
												$mob=substr($user['silver_number'],0,3).'****'.substr($user['silver_number'],-4);
												$silver_card='********';
											}else{
												$mob=$user['silver_number'];
												$silver_card=$user['silver_card'];
											}
										}else{
											$mob=$user['silver_number'];
											$silver_card=$user['silver_card'];
										}
										</php>
									<input type="text" value="{$silver_card}"><span style="color: #959595;">&nbsp;&nbsp;&nbsp;所属银行：{$user.bank}</span>
									
									</div>
								</div>
								<div class="control-group">
									<label class="control-label">注册时间</label>
									<div class="controls">
										<input type="text" value="{$user.crtime}" >
									</div>
								</div>
								<div class="control-group">
									<label class="control-label">学信网账号:</label>
									<div class="controls">
										<input type="text"  value="{$user.xuexin_name}"><span class="form-required">&nbsp&nbsp&nbsp&nbsp密码&nbsp&nbsp<input type="text"  value="{$user.xuexin_pass}"></span>
									</div>
								</div>
								<div class="control-group">
									<label class="control-label">qq</label>
									<div class="controls">
										<php>
										if($group==3 || $group==8 || $group==10 || $group==13 || $group==6){
											if($user['account_status']!=0){
												$weixin='*******';$qqs='*******';
											}else{
												$weixin=$user['email'];$qqs=$user['qq'];
											}
										}else{
											$weixin=$user['email'];$qqs=$user['qq'];
										}
										</php>
										<input type="text" name="options[qq]" value="{$qqs}">&nbsp&nbsp&nbsp&nbsp微信&nbsp&nbsp<input type="text" name="options[email]" value="{$weixin}"></span>
									</div>
								</div>
								<div class="control-group">
									<label class="control-label">百度黑名单：<span style="color:blue;">{$user.baidu_blacklist|default='<span class="label label-warning">未命中</span>'}</span> <span class="label label-default">等级值 A/B/C/D。其中，A、B 级为严重欺诈／信用违约／历史高危行为多维度交叉验证的结果，建议纳入拒绝策略；C/D 级为命中高风险交易／信贷行为、高危网络行为等典型特征，建议纳入风控模型.</span></label>
								</div>
								<div class="control-group">
									<label class="control-label">百度黑名单类型：<span style="color:blue;">{$user.baidu_blacktype|default=''}</span> <span class="label label-default">C01:信贷逾期,C02:信用风险提示,C03:历史欺诈记录,C04:欺诈风险提示,C05:高危用户,C06:政府失信类 </span></label>
								</div>
								<php>
								$blackDetails='';
								$user['baidu_blackDetails']=json_decode($user['baidu_blackDetails'],true);
								foreach($user['baidu_blackDetails'] as $key=>$vs){
									switch ($key){
										case 'C01BT001':
											$blackDetails.=' C01BT001信贷逾期 贷款日期:'.$vs['loan_date'].' 逾期日期:'.$vs['odu_level'].' 逾期等级:'.$vs['odu_level'].' 逾期金额:'.$vs['odu_amount_level'].'<br/>';
											break;
										case 'C02BT002':
											$blackDetails.=' C02BT002多头借贷倾向 '.$vs['level'].'<br/>';
											break;
										case 'C02BT003':
											$blackDetails.=' C02BT003信用逾期预测 '.$vs['level'].'<br/>';
											break;
										case 'C04BT012':
											$blackDetails.=' C04BT012养号 '.$vs['level'].'<br/>';
											break;
										case 'C04BT013':
											$blackDetails.=' C04BT013盗号 '.$vs['level'].'<br/>';
											break;
										case 'C05BT019':
											$blackDetails.=' C05BT019 在逃嫌犯 案件类别:'.$vs['case_cat'].' 案件详情:'.$vs['case_info'].' 发布机关:'.$vs['pub_org'].'<br/>';
											break;
										case 'C06BT020':
											$blackDetails.=' C06BT020 法院失信人 执行义务:'.$vs['duty'].' 执行情况:'.$vs['performance'].' 公开日期:'.$vs['publishDate'].' 执行法院:'.$vs['court'].' 案件编号:'.$vs['case_no'].' 违反条例:'.$vs['disruptTypeName'].'<br/>';
											break;
										case 'C06BT021':
											$blackDetails.=' C06BT021 偷税漏税 税务主体:'.$vs['taxpayer_name'].' 纳税识别号:'.$vs['taxpayer_iden_num'].' 公开机构:'.$vs['info_source'].' 主要:'.$vs['major_fact'].'<br/>';
											break;
										case 'C06BT022':
											$blackDetails.=' C06BT022 股权冻结 执行法院:'.$vs['execute_court'].' 处罚编号:'.$vs['adjudicate_no'].' 冻结金额:'.$vs['freeze_amount'].' 处罚公开时间:'.$vs['pub_date'].' 合作企业名称:'.$vs['corp_name'].'<br/>';
											break;
										case 'C06BT023':
											$blackDetails.=' C06BT023 工商无照 处罚编号:'.$vs['punishment_no'].' 执行原因:'.$vs['cause_of_action'].' 处罚部门:'.$vs['handle_org_name'].' 公示日期:'.$vs['pub_date'].' 处罚内容:'.$vs['punishment_content'].'<br/>';
											break;
										case 'C06BT024':
											$blackDetails.=' C06BT024 法院执行人 注册时间:'.$vs['reg_date'].' 案件编号:'.$vs['case_no'].' 判决法院:'.$vs['court'].' 执行金额:'.$vs['exec_money'].'<br/>';
											break;
										case 'C06BT025':
											$blackDetails.=' C06BT025 行政处罚 行政处罚决定书文号:'.$vs['cf_wsh'].' 处罚名称:'.$vs['cf_cfmc'].' 处罚事由:'.$vs['cf_sy'].' 处罚结果:'.$vs['cf_jg'].' 处罚机关:'.$vs['cf_xzjg'].' 发布时间:'.$vs['reg_date'].'<br/>';
											break;
									}
								}
								</php>
								<div class="control-group">
									<label class="control-label">百度黑名单原因说明：<span style="color:blue;">{$blackDetails|default=''}</span></label>
								</div>
								<div class="control-group">
									<label class="control-label">腾讯黑名单分数：<span style="color:blue;">{$user.tx_blackscore|default='<span class="label label-warning">未命中</span>'}</span> <span class="label label-default">说明：0-100:分值越高数据风险越高。风险度参考区间：0~35：低风险 36~79：中风险 80~100:高风险</span></label>
								</div>
								<div class="control-group">
									<label class="control-label">腾讯黑名单标签：<span style="color:blue;">{$user.tx_blacktag|default='<span class="label label-warning">未命中</span>'}</span></label>
								</div>
								<div class="control-group">
									<php>
										$tmp = json_decode($user['tianji_blacklist'],true);
										$tmp = $tmp[0];
									</php>
									<if condition="$tmp!=false">
										<label class="control-label">天机黑名单：</label>
										<div class="controls">
												<ul class="list-group" style="width: 50%;margin-left: 0;">
													<li class="list-group-item">
														<span class="badge">{$tmp.feature1|default="未命中"}</span>
														放款时间
													</li>
													<li class="list-group-item">
														<span class="badge">{$tmp.feature2|default="未命中"}</span>
														逾期开始时间
													</li>
													<li class="list-group-item">
													<span class="badge">
														<switch name="tmp.feature3">
															<case value="1">31~60天</case>
															<case value="2">61~90天</case>
															<case value="3">90~120天</case>
															<case value="4">121~150天</case>
															<case value="5">151~180天</case>
															<case value="6">大于181天</case>
															<default />未命中
														</switch>
													</span>
														逾期时长
													</li>
													<li class="list-group-item">
													<span class="badge">
														<switch name="tmp.feature4">
															<case value="-1">未知</case>
															<case value="1">0~499</case>
															<case value="2">500~1999</case>
															<case value="3">2000~4999</case>
															<case value="4">5000~9999</case>
															<case value="5">大于1万</case>
															<default />未命中
														</switch>
													</span>
														借款金额
													</li>
													<li class="list-group-item">
													<span class="badge">
														<switch name="tmp.feature5">
															<case value="-1">未知</case>
															<case value="0">未结清</case>
															<case value="1">已结清</case>
															<default />未命中
														</switch>
													</span>
														借款状态
													</li>
												</ul>
										</div>
										<else/>
										<label class="control-label">天机黑名单：<span class="label label-warning">未命中</span></label>
									</if>
								</div>
								<div class="control-group">
									<label class="control-label">西瓜分：<span style="color:blue;">{$decision|default='<span class="label label-warning">未命中</span>'}</span> <span class="label label-default">说明：300~850</span></label>
								</div>
								<div class="control-group">
									<label class="control-label">
									<a class="btn btn-primary btn-lg"  href="javascript:open_iframe_layer('{:U(\'report/user_report_jinjiedao\',array(\'id\'=>$user[\'id\']))}', '今借到信用报告')">点击查看该客户的"今借到"信用报告</a></label><br/>
									
									<a class="btn btn-danger js-ajax-dialog-btn" data-msg="查询黑名单?" href="{:U('Indexadmin/black_list_api',array('user_id'=>$user['id']))}">查询黑名单</a><br/>
									<a class="btn btn-danger" href="{:U('Indexadmin/add_other_date',array('user_id'=>$user['id'],'type'=>1))}">支付宝信息认证</a>
								</div>
								<div class="control-group">
									<label class="control-label">教育水平</label>
									<div class="controls">
										<select name="options[education]">
											<foreach name="education" item="vo">
											<php>$tpl_selected=$user['education']==$vo['education']?"selected":"";</php>
											<option value="{$vo.education}" {$tpl_selected}>{$vo.education}</option>
											</foreach>
										</select>
									</div>
								</div>
								<div class="control-group">
									<label class="control-label">常住地址</label>
									<div class="controls">
										<textarea name="options[useraddr]" rows="4" cols="30">{$user.useraddr}</textarea>
									</div>
								</div>
								<div class="control-group">
									<label class="control-label">居住时长</label>
									<div class="controls">
										<select name="options[addr_time]">
											<php>$tpl_selected=$user['addr_time']=='三个月'?"selected":"";</php>
											<option {$tpl_selected} value="三个月">三个月</option>
											<php>$tpl_selected=$user['addr_time']=='六个月'?"selected":"";</php>
											<option {$tpl_selected} value="六个月">六个月</option>
											<php>$tpl_selected=$user['addr_time']=='一年'?"selected":"";</php>
											<option {$tpl_selected} value="一年">一年</option>
											<php>$tpl_selected=$user['addr_time']=='两年'?"selected":"";</php>
											<option {$tpl_selected} value="两年">两年</option>
											<php>$tpl_selected=$user['addr_time']=='两年以上'?"selected":"";</php>
											<option {$tpl_selected} value="两年以上">两年以上</option>
										</select>
									</div>
								</div>
								<div class="control-group">
									<label class="control-label">父亲名字</label>
									<div class="controls">
										<input type="text" name="options[parent_f_n]" value="{$user.parent_f_n}"><span class="form-required">&nbsp&nbsp&nbsp&nbsp电话号码&nbsp&nbsp<input type="text" name="options[parent_f_t]" value="{$user.parent_f_t}"></span>
									</div>
								</div>
								<div class="control-group">
									<label class="control-label">母亲名字</label>
									<div class="controls">
										<input type="text" name="options[parent_m_n]" value="{$user.parent_m_n}"><span class="form-required">&nbsp&nbsp&nbsp&nbsp电话号码&nbsp&nbsp<input type="text" name="options[parent_m_t]" value="{$user.parent_m_t}"></span>
									</div>
								</div>
								<div class="control-group">
									<label class="control-label">同学A</label>
									<div class="controls">
										<input type="text" name="options[classm_a_n]" value="{$user.classm_a_n}"><span class="form-required">&nbsp&nbsp&nbsp&nbsp电话号码&nbsp&nbsp<input type="text" name="options[classm_a_t]" value="{$user.classm_a_t}"></span>
									</div>
								</div>
								<div class="control-group">
									<label class="control-label">同学B</label>
									<div class="controls">
										<input type="text" name="options[classm_b_n]" value="{$user.classm_b_n}"><span class="form-required">&nbsp&nbsp&nbsp&nbsp电话号码&nbsp&nbsp<input type="text" name="options[classm_b_t]" value="{$user.classm_b_t}"></span>
									</div>
								</div>
								<div class="control-group">
									<label class="control-label">是否禁止登录</label>
									<div class="controls">
										<select name="options[user_status]" disabled>
										<php>$html_cache_on_checked=$user_status=$user['user_status']=='0'?"selected":"";</php>
										<option value="0" {$html_cache_on_checked}>禁用</option>
										<php>$html_cache_on_checked=$user['user_status']=='1'?"selected":"";</php> 
										<option value="1" {$html_cache_on_checked}>正常</option>
									</select>
									</div>
								</div>
								<div class="control-group">
									<label class="control-label">是否成人</label>
									<div class="controls">
										<if condition="$user.is_adult eq 1">成人
										<elseif condition="$user.is_adult eq 2"/>学生
										<else/>未知
										</if>
									</div>
								</div>
								<if condition="($log)">
								<div class="control-group">
									<label class="control-label">审核信息</label>
									<div class="controls">
									<label class="control-label" style="width:auto">
										<table border="1" style='text-align:center;width:800px' cellpadding='10px'>
											<tr>
												<th>审核类型</th>
												<th>审核时间</th>
												<th>审核人</th>
												<th>审核备注</th>
												<th>审核操作</th>
											</tr>
											<php>$stu_type=array('1'=>'借款中','2'=>'已还款','3'=>'逾期','4'=>'已到期','5'=>'审核中','6'=>'审核不通过','7'=>'驳回','8'=>'放款成功','9'=>'放款不成功','10'=>'待放款');
											$stu_ty=array('0'=>'用户审核','1'=>'订单审核','2'=>'用户信息审核','3'=>'续期审核','4'=>'逾期还款(本金)','5'=>'逾期还款','6'=>'订单审核');
											</php>
											<foreach name="log" item="vo">
												<eq name="vo.types" value="2">
												<tr>
													<td>{$stu_ty[$vo['types']]}</td>
													<td>{$vo.crtime}</td>
													<td>{$users[$vo['examine_id']]}</td>
													<td>{$vo.message}</td>
													<td>{$vo['status']?'审核成功':'审核失败'}</td>
												</tr>
												</eq>
											</foreach>
										</table>
									</label>
									</div>
								</div>
								</if>
								<if condition="($userRemarks)">
									<div class="control-group">
										<label class="control-label">用户运营备注信息</label>
										<div class="controls">
											<label class="control-label" style="width:auto">
												<table class="table table-bordered">
													<tr>
														<th>日期</th>
														<th>填写人</th>
														<th>备注</th>
													</tr>
													<foreach name="userRemarks" item="vo">
														<tr>
															<td>{$vo.create_time|date="Y-m-d H:i:s",###}</td>
															<td>{$users[$vo['create_by']]}</td>
															<td>{$vo.remark}</td>
														</tr>
													</foreach>
												</table>
											</label>
										</div>
									</div>
								</if>
								<if condition="($mobile_list)">
								<div class="control-group">
									<label class="control-label">手机通讯录 <a href="{:U('indexadmin/mobile_down',array('id'=>$user['id']))}">导出</a></label>
									<div class="controls">
									<label class="control-label" style="width:auto">
										<table border="1" style='text-align:center;width:800px' cellpadding='10px'>
											<tr>
												<th>上传时间</th>
												<th>联系人备注姓名</th>
												<th>手机号码</th>
												<th>手机类型</th>
											</tr>
											<foreach name="mobile_list" item="vo">
												<tr>
													<td>{$vo.crtime}</td>
													<td>{$vo.name}</td>
													<td>{$vo.mobile}</td>
													<td>{$vo['mobile_type']==1?'安卓':'苹果'}</td>
												</tr>
											</foreach>
										</table>
									</label>
									</div>
									<div class="pagination">{$page}</div>
								</div>
								</if>
							</fieldset>
					</div>
				</div>
			</fieldset>	
	</div>
	<script src="__PUBLIC__/js/common.js"></script>
</body>
</html>